from config.mysql_config import mysql

def save_info_to_db(ip,data):
    """查询终端的真实性信息"""

    with mysql() as cursor:

        ip_list = []
        sql = "insert into test(img_ip,position) values('{}','{}');".format(ip,data)
        print(sql)
        cursor.execute(sql)
        print("保存成功")








